package com.wangyk.rabbitmqconsole.configRabbitmq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description:
 * 队列配置，队列的名称，发送者和接受者的名称必须一致，否则接收不到消息
 * @Author: wangyk
 * @CreateDate: 2018/11/20$ 17:54$
 * @UpdateUser: wangyk
 * @UpdateDate: 2018/11/20$ 17:54$
 * @UpdateRemark:
 * @Version: 1.0
 */
@Configuration
public class RabbitMqConfig
{
    @Bean
    public Queue Queue1()
    {
        return new Queue("wangykTest1");
    }

    @Bean
    public Queue Queue2()
    {
        return new Queue("wangykTest2");
    }
}
